home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue53 / Clinic / ErrorMsgs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-12-03  |  1.1 KB  |  55 lines

  1. //
  2. //  Values are 32 bit values layed out as follows:
  3. //
  4. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  5. //   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  6. //  +---+-+-+-----------------------+-------------------------------+
  7. //  |Sev|C|R|     Facility          |               Code            |
  8. //  +---+-+-+-----------------------+-------------------------------+
  9. //
  10. //  where
  11. //
  12. //      Sev - is the severity code
  13. //
  14. //          00 - Success
  15. //          01 - Informational
  16. //          10 - Warning
  17. //          11 - Error
  18. //
  19. //      C - is the Customer code flag
  20. //
  21. //      R - is a reserved bit
  22. //
  23. //      Facility - is the facility code
  24. //
  25. //      Code - is the facility's status code
  26. //
  27. //
  28. // Define the facility codes
  29. //
  30.  
  31.  
  32. //
  33. // Define the severity codes
  34. //
  35.  
  36.  
  37. //
  38. // MessageId: ERROR_NUMBER_NEGATIVE
  39. //
  40. // MessageText:
  41. //
  42. //  Negative numbers not supported
  43. //
  44. #define ERROR_NUMBER_NEGATIVE            0xC0000001L
  45.  
  46. //
  47. // MessageId: ERROR_NUMBER_TOO_BIG
  48. //
  49. // MessageText:
  50. //
  51. //  The number was too big
  52. //
  53. #define ERROR_NUMBER_TOO_BIG             0xC0000002L
  54.  
  55.